import axios from "../../axios"

export function getAutoOrder(userId, userRole) {
    return axios.get('/getAutoOrder?userId=' + userId + '&role=' + userRole)
}

export function getFixOrder(userId, userRole) {
    return axios.get('/getFixOrder?userId=' + userId + '&role=' + userRole)
}

export function getOrder(userId, userRole) {
    return axios.get('/getOrder?userId=' + userId + '&role=' + userRole)
}

export function autoPageQuery() {
    return axios.get('/autoOrderPageQuery')
}

export function repairPageQuery() {
    return axios.get('/repairOrderQuery')
}

//获取用车工单详情
export function getAutoOrderDetail(autoOrderId) {
    return axios.get('/getAutoOrderDetail?autoOrderId=' + autoOrderId)
}

//获取维修工单详情
export function getRepairOrderDetail(repairOrderId) {
    return axios.get('/getRepairOrderDetail?repairOrderId=' + repairOrderId)
}
